package com.danny.mapper;

import com.danny.pojo.Floor;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface FloorMapper {

    //分页查询所有楼层信息
    List<Floor>queryFloorsLimit(Map<String,Object> map);

    //模糊分页查询
    List<Floor>queryFloorsLimitHasInput(Map<String,Object> map);

    //查询所有楼层信息
    List<Floor>queryAllFloors();

    //所有楼层信息个数
    int floorsCount();

    //模糊查询楼层信息个数
    int floorsCountHasInput(String floorInfo);

    /**
     * @description
     * @增刪改
     * @param
     */
    int addFloor(Floor floor);

    int updateFloor(Floor floor);

    int deleteFloorById(int id);
}
